﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AccountsDomain
{
   public class AccountBalance
    {
        #region Properties
        public Guid ID { get; set; }
        public decimal Amount { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public Guid MoneyID { get; set; }      
        #endregion

        #region NavigationalProperties
        [ForeignKey("MoneyID")]
        public virtual Money Money { get; set; }    
        [InverseProperty("OpeningBalance")]
         public virtual ICollection<Account> OpeningBalances { get; set; }
         [InverseProperty("Balance")] 
          public virtual ICollection<Account> Balances { get; set; }
        #endregion
    }
}
